﻿@model Classified.Domain.Entities.User
<script src="@Url.Content("~/Scripts/jquery.unobtrusive-ajax.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@using (Ajax.BeginForm("LogOnByEmail", "Account", new AjaxOptions { HttpMethod = "Post", UpdateTargetId = "link-field", InsertionMode = InsertionMode.Replace, OnSuccess = "$('#link-field').css('color','green');" }))
{
    <div class="span5 thumbnail">
        <fieldset>
            <legend>
                <h4>
                    Already posted an ad</h4>
            </legend>
            <div id="link-field">
                <p>
                    Enter the email that you used to post your ad and receive the link to My Ads by
                    email.</p>
                <br />
                <div class="clearfix">
                    @Html.LabelFor(m => m.Email)
                    <div class="input">
                        @Html.TextBoxFor(m => m.Email)
                        @Html.ValidationMessageFor(m => m.Email)
                    </div>
                </div>
                <div class="clearfix">
                    <div class="input">
                        <input class="btn btn-info" id="logonEmailbtn" type="submit" value="Send" />
                    </div>
                </div>
            </div>
        </fieldset>
    </div>

}
